package com.liugan.magic.screen;

public class PointXY {

	public boolean isinit=false;
	public int x;
	public int y;
	
	public boolean isIsinit() {
		return isinit;
	}
	public void setIsinit(boolean isinit) {
		this.isinit = isinit;
	}
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}

	public PointXY(int x,int y){
		this.x=x;
		this.y=y;
		this.isinit=true;
	}
	public PointXY(){
		
	}
	
	public String toString() {
		return "坐标x:"+x+"   坐标y:"+y;
	}
	
	public void setxy(int x,int y){
		this.x=x;
		this.y=y;
		this.isinit=true;
	}
	
	public void setxy(PointXY xy){
		this.x=xy.x;
		this.y=xy.y;
		this.isinit=true;
	}
	
}
